home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / graphics / text.inc < prev    next >
Text File  |  1998-06-24  |  2KB  |  122 lines

  1. include "inc/exec/ports.inc";
  2. include "inc/graphics/gfx.inc";
  3. include "inc/utility/tagitem.inc";
  4.  
  5. def FS_NORMAL = 0;
  6. def FSB_UNDERLINED = 0;
  7. def FSF_UNDERLINED = $01;
  8. def FSB_BOLD = 1;
  9. def FSF_BOLD = $02;
  10. def FSB_ITALIC = 2;
  11. def FSF_ITALIC = $04;
  12. def FSB_EXTENDED = 3;
  13. def FSF_EXTENDED = $08;
  14.  
  15. def FSB_COLORFONT = 6;
  16. def FSF_COLORFONT = $40;
  17. def FSB_TAGGED = 7;
  18. def FSF_TAGGED = $80;
  19.  
  20. def FPB_ROMFONT = 0;
  21. def FPF_ROMFONT = $01;
  22. def FPB_DISKFONT = 1;
  23. def FPF_DISKFONT = $02;
  24. def FPB_REVPATH = 2;
  25. def FPF_REVPATH = $04;
  26. def FPB_TALLDOT = 3;
  27. def FPF_TALLDOT = $08;
  28. def FPB_WIDEDOT = 4;
  29. def FPF_WIDEDOT = $10;
  30. def FPB_PROPORTIONAL = 5;
  31. def FPF_PROPORTIONAL = $20;
  32. def FPB_DESIGNED = 6;
  33. def FPF_DESIGNED = $40;
  34. def FPB_REMOVED = 7;
  35. def FPF_REMOVED = (1<<7);
  36.  
  37. struct TextAttr is
  38.   ta_Name:ulong;
  39.   ta_YSize:uword;
  40.   ta_Style:ubyte;
  41.   ta_Flags:ubyte;
  42. ;
  43.  
  44. struct TTextAttr is
  45.   tta_Name:ulong;
  46.   tta_YSize:uword;
  47.   tta_Style:ubyte;
  48.   tta_Flags:ubyte;
  49.   tta_Tags:ulong;
  50. ;
  51.  
  52. def TA_DeviceDPI = (1|TAG_USER);
  53. def MAXFONTMATCHWEIGHT = 32767;
  54.  
  55. struct TextFont is
  56.   tf_Message:Message;
  57.   tf_YSize:uword;
  58.   tf_Style:ubyte;
  59.   tf_Flags:ubyte;
  60.   tf_XSize:uword;
  61.   tf_Baseline:uword;
  62.   tf_BoldSmear:uword;
  63.   tf_Accessors:uword;
  64.   tf_LoChar:ubyte;
  65.   tf_HiChar:ubyte;
  66.   tf_CharData:ulong;
  67.   tf_Modulo:uword;
  68.   tf_CharLoc:ulong;
  69.   tf_CharSpace:ulong;
  70.   tf_CharKern:ulong;
  71. ;
  72.  
  73. def tf_Extension = tf_Message.mn_ReplyPort;
  74.  
  75. def TE0B_NOREMFONT = 0;
  76. def TE0F_NOREMFONT = $01;
  77.  
  78. struct TextFontExtension is
  79.   tfe_MatchWord:uword;
  80.   tfe_Flags0:ubyte;
  81.   tfe_Flags1:ubyte;
  82.   tfe_BackPtr:ulong;
  83.   tfe_OrigReplyPort:ulong;
  84.   tfe_Tags:ulong;
  85.   tfe_OFontPatchS:ulong;
  86.   tfe_OFontPatchK:ulong;
  87. ;
  88.  
  89. def CT_COLORMASK = $000f;
  90. def CT_COLORFONT = $0001;
  91. def CT_GREYFONT = $0002;
  92. def CT_ANTIALIAS = $0004;
  93.  
  94. def CTB_MAPCOLOR = 0;
  95. def CTF_MAPCOLOR = $0001;
  96.  
  97. struct ColorFontColors is
  98.   cfc_Reserved:uword;
  99.   cfc_Count:uword;
  100.   cfc_ColorTable:ulong;
  101. ;
  102.  
  103. struct ColorTextFont is
  104.   ctf_TF:TextFont;
  105.   ctf_Flags:uword;
  106.   ctf_Depth:ubyte;
  107.   ctf_FgColor:ubyte;
  108.   ctf_Low:ubyte;
  109.   ctf_High:ubyte;
  110.   ctf_PlanePick:ubyte;
  111.   ctf_PlaneOnOff:ubyte;
  112.   ctf_ColorFontColors:ulong;
  113.   ctf_CharData[8]:ulong;
  114. ;
  115.  
  116. struct TextExtent is
  117.   te_Width:uword;
  118.   te_Height:uword;
  119.   te_Extent:Rectangle;
  120. ;
  121.  
  122.